package com.itany.vue.vue.controller;

import com.itany.vue.vue.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController {

    @RequestMapping("/f1")
    public User f1(){
        System.out.println("UserController.f1");
        return new User(1,"aaa","111");
    }

    @RequestMapping("/f2")
    public User f2(String username,String password){
        System.out.println("UserController.f2");
        return new User(1,username+"xxx",password);
    }
}
